import request from '@/utils/request'
//查
export function getProductList(data) {
  return request({
    url: '/tableProduct/list',
    method: 'post',
    data
  })
}

export function getSelectNameAndInventory(data) {
  return request({
    url: '/tableProduct/selectNameAndInventory',
    method: 'post',
    data
  })
}

//新增
export function createProduct(data) {
  return request({
    url: '/tableProduct/create',
    method: 'post',
    data
  })

}


//修改
export function updateProduct(data) {
  return request({
    url: '/tableProduct/update',
    method: 'post',
    data
  })
}


//删除
export function deleteProduct(data) {
  return request({
    url: '/tableProduct/delete',
    method: 'post',
    data
  })
}



//商品数量
export function selectProductCount(data) {
  return request({
    url: '/tableProduct/selectProductCount',
    method: 'post',
    data
  })
}






